package com.xingbang.service;
import com.xingbang.dao.ConsumerecordsMapper;
import com.xingbang.pojo.Consumerecords;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
/**
 * @author zchcpy
 */
@Service
public class ConsumerecordsService {
	@Resource
	private ConsumerecordsMapper consumerecordsMapper;
	public int deleteByPrimaryKey(Integer id, Integer companyid) {
		return consumerecordsMapper.deleteByPrimaryKey(id, companyid);
	}
	public int insert(Consumerecords record) {
		return consumerecordsMapper.insert(record);
	}
	public int insertSelective(Consumerecords record) {
		return consumerecordsMapper.insertSelective(record);
	}
	public Consumerecords selectByPrimaryKey(Integer id, Integer companyid) {
		return consumerecordsMapper.selectByPrimaryKey(id, companyid);
	}
	public int updateByPrimaryKeySelective(Consumerecords record) {
		return consumerecordsMapper.updateByPrimaryKeySelective(record);
	}
	public int updateByPrimaryKey(Consumerecords record) {
		return consumerecordsMapper.updateByPrimaryKey(record);
	}
	public List<Map<Object, Object>> sql(String sql) {
		return consumerecordsMapper.sql(sql);
	}
}
